<template>
  <el-card class="page-tools">
    <el-row type="flex" justify="space-between" align="middle">
      <el-col>

        <div v-if="showBefore" class="before">
          <slot name="before" />
        </div>
      </el-col>
      <el-col>
        <el-row type="flex" justify="end">
          <slot name="after" />
        </el-row>
      </el-col>
    </el-row>
  </el-card>
</template>

<script>

export default {
  props: {
    showBefore: {
      default: false,
      type: Boolean
    }
  }
}
</script>

<style lang="scss">
.el-card__body{
  padding-top:0px;
}
.el-card.is-always-shadow{
  webkit-box-shadow: none;
        box-shadow: none;
}
    .page-tools{
      border: none;
      border-bottom: 1px solid #EBEEF5;
      h2{
        margin: 0px;
      padding: 0px;
      font-size: 18px;
      }
    }
</style>
